#include <stdio.h>

struct student
{
	char sno[8];
	char name[20];
	char sex;
	int age;
	double score;
};

void input(int n, struct student t[]);
void output(int n, struct student *t);

int main(void)
{	
	struct student s[3];

	input(3, s);
	output(3, s);

	return 0;
}

void input(int n, struct student t[])
{
	int i;
	
	printf("Input %d students' information(sex, sno, name, age, score):\n", n);
	for (i = 0; i < n; i++)
	{
		scanf("%c%s%s%d%lf", &t[i].sex, t[i].sno, t[i].name, &t[i].age, &t[i].score);
		getchar();
	}
}

void output(int n, struct student *t)
{
	int i;

	puts("  sno              name       sex   age   score");
	for (i = 0; i < n; i++)
			printf("%s%20s%5c%5d%8.1f\n", t[i].sno, t[i].name, t[i].sex, t[i].age, t[i].score);
}